Tootsville::Infinity-Create-User-House

Function

Infinity-Create-User-House names a function, with lambda list (D USER RECIPIENT/S):

Either claim the user's house and lot, or add a room to their house.

Lisp CREATE-USER-HOUSE = JSON createUserHouse

Usage

{ lot: "Lot ID",
  house: "House ID" }

{ index: ROOM-INDEX, connectTo: ROOM-INDEX, connectAt: "point moniker" }

Data describing the user's lot.

When the player has found an empty lot and wishes to claim it as their own, they choose a base house item and send

 { lot: lot-ID, house: house-ID }

When the player has a house and wishes to add a room, they send

 { index: roomIndex,
    connectTo: roomIndex,
    connectAt: pointMoniker } 

201 Created

A house or room was created as demanded

409 Conflict

A house already exists on that lot, or, a room is already connected at the given connection point. The request cannot be completed because something already exists where the new construction was meant to be placed.

404 Not Found

The house ID or room connection point given was not found.

Changes from 1.2 to 2.0

In 1.2 adding a room required only an index.

File

Defined in file src/infinity/legacy-commands.lisp.